
<div class="col-sm-12 mt20">
     <div class="panel">
           <div class="panel-body">
                <div class="col-sm-12">
			                <div class="row">			        
                                <div class="col-sm-2"> 
                                     <input type="text" class="form-control" ng-model="searchform.code" placeholder="订单编号">
                                </div>
                                <div class="col-sm-2"> 
                                      <input type="text" class="form-control" ng-model="searchform.title" placeholder="订单名称">
                                </div>
                                <div class="col-sm-2"> 
                                     <input type="text" class="form-control" ng-model="searchform.username" placeholder="姓名">
                                </div>
                                <div class="col-sm-2"> 
                                      <input type="text" class="form-control" ng-model="searchform.mobile" placeholder="手机号">
                                </div>
                                <div class="col-sm-2"> 
                                     <input type="text" class="form-control" ng-model="searchform.papersno" placeholder="身份证">
                                </div>
                                <div class="col-sm-2"> 
                                      <input type="text" class="form-control" ng-model="searchform.cardno" placeholder="卡号">
                                </div>
			                 </div>
                       <div class="row mt10">			        
                              <div class="col-sm-2">
                                  <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date.lable" is-open="date.opened"
                                    ng-click="dateOpen($event, date)" placeholder="开始时间" ng-required="true"  close-text="关闭" current-text="今天" clear-text="清除"  readonly/>
                              </div>
                                <div class="col-sm-2">
                                  <input type="text" class="form-control" datepicker-popup="yyyy-MM-dd" ng-model="date1.lable" is-open="date1.opened"
                                    ng-click="dateOpen1($event, date1)" placeholder="结束时间" ng-required="true" close-text="关闭" current-text="今天" clear-text="清除" readonly/>						
                                </div>
                                <div class="col-sm-2"> 
                                    <ui-select ng-model="searchform.order_type" theme="bootstrap" ng-keyup="myKeyup($event)">
                                      <ui-select-match placeholder="订单类型">
                                        {{$select.selected.label}}
                                      </ui-select-match>
                                      <ui-select-choices repeat="item.value as item in ordertype | filter: $select.search">
                                        <span ng-bind-html="item.label | highlight: $select.search"></span>
                                      </ui-select-choices>
                                    </ui-select>
                                </div>
                                <div class="col-sm-2"> 
                                    <ui-select ng-model="searchform.pay_state" theme="bootstrap" ng-keyup="myKeyup($event)">
                                      <ui-select-match placeholder="支付类型">
                                        {{$select.selected.label}}
                                      </ui-select-match>
                                      <ui-select-choices repeat="item.value as item in paystate | filter: $select.search">
                                        <span ng-bind-html="item.label | highlight: $select.search"></span>
                                      </ui-select-choices>
                                    </ui-select>
                                </div>
                                <div class="col-sm-2"> 
                                </div>
                                <div class="col-sm-2"> 
                                    <input type="button "  class="btn btn-info search form-control"  ng-click="load()"  value="立即搜索">
                                </div>
			                 </div>
                </div>
           </div>
     </div>
</div>              

<div class="col-md-12 panel panel-default table-responsive">
<table class="table table-hover table-bordered">
  <thead>
    <tr>
    	<th class="col-xs-2 text-center">订单信息</th>
    	<th class="col-xs-2 text-center">学校信息</th>
    	<th class="col-xs-2 text-center">游客信息</th>
    	<th class="col-xs-1 text-center">数量</th>
    	<th class="col-xs-1 text-center">购买时间</th>
    	<th class="col-xs-1 text-center">卡产品分类</th>
    	<th class="col-xs-1 text-center">订单类型</th>
     	<th class="col-xs-1 text-center">操作</th>
    </tr>
  </thead>
  <tbody>
    <tr ng-repeat="obj in objs">
    	<td class="text-center">
    		{{obj.code}}<br>
			{{obj.title}}
		</td>
    	<td class="text-center">
    		{{obj.school_name}}<br>
			{{obj.school_area}}
		</td>
     	<td class="text-center">
     		{{obj.name}}<br>
     		{{obj.mobile}}<br>
     		{{obj.idnumber}}
     	</td>
     	<td class="text-center">
          <span>购买{{obj.num}}</span><br>
          <span>退票{{obj.back}}</span><br>
          <span>使用{{obj.used}}</span>
        </td>
        <td class="text-center">{{obj.create_time}}</td>
        <td class="text-center">{{obj.card_typename}}</td>
     	<td class="text-center">{{obj.order_typename}}</td>
	    <td class="text-center">
	    	<a ng-click="ticketinfo(obj.code)" class="btn btn-success btn-xs">票信息</a><br>
	    	<a ng-click="cardinfo(obj.code)" class="btn btn-warning btn-xs">卡信息</a><br>
	      	<a ng-click="orderinfo(obj)" class="btn btn-info btn-xs">订单详情</a>
	    </td>
    </tr>
    
  </tbody>
</table>


  <div class="text-right">

    <pagination 
      total-items="bigTotalItems" 
      ng-model="bigCurrentPage" 
      max-size="maxSize" 
      class="pagination-sm" 
      boundary-links="true" 
      ng-change="load()"
      items-per-page="itemsPerPage"
      previous-text="上一页"
      next-text="下一页"
      first-text="首页"
      last-text="末页"
      rotate="false">
    </pagination>

  </div>

</div>
</div>